package homework11;

public class Number extends Thread {
	private Printer p;
	public Number(Printer p){
		super();
		this.p=p;
	}
	@Override
    public void run() {
		synchronized (this) {
			for (int i = 1; i <= 52; i++) {
				p.print(i);
			}
		}
    }
}
